package at.fhhagenberg.mcm09.elevator.model;

public class StopRequest {

	protected int targetFloor;

	public StopRequest(int _targetFloor) {
		targetFloor = _targetFloor;
	}

	public int getTargetFloor() {
		return targetFloor;
	}

	public void setTargetFloor(int targetFloor) {
		this.targetFloor = targetFloor;
	}

	@Override
	public boolean equals(Object obj) {
		if(obj instanceof StopRequest){
			StopRequest other = (StopRequest)obj;
			
			return targetFloor == other.targetFloor;
		}
		else return false;
	}
	

	
}
